#ifndef __losor_syntax_h__
#define __losor_syntax_h__

#include <list.h>
#include <map.h>
#include "type.h"
#include "declaration.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _lex_info
{
    list *tokens;
    int cur_token;
    list *comments;
    int cur_comment;
    list *errors;
    smap *symbols;
    list *region;
} lex_info;

void lex_init( lex_info *lex, list *tokens, list *comments, list *errors, smap *sym );

#ifdef __cplusplus
};
#endif

#endif // __losor_syntax_h__
